{include file="public/header" select="0" /}
<body>
<div class="title bgc">
    <i class="layui-icon layui-icon-left" onclick="goBack()"></i>
    我的团队
</div>
<div class="team">
    <img src="/static/index/img/team-bgc.png" alt="">
    <ul class="team-news">
        <li>
            <p>直推人数</p>
            <p class="team-number">{$dpn}</p>
        </li>
        <li>
            <p>直推业绩</p>
            <p class="team-number">{:sprintf('%.2f',$dpn_total)}</p>
        </li>
        <li>
            <p>团队人数</p>
            <p class="team-number">{$team}</p>
        </li>
        <li>
            <p>团队业绩</p>
            <p class="team-number">{$team_total}</p>
        </li>
    </ul>
</div>

<ul class="team-list team-list-title">
    <li>用户</li>
    <li>手机号</li>
    <li>注册时间</li>
    <li>团队业绩</li>
</ul>
<ul class="team-list-news tpl_list"></ul>
<script id="template" type="text/html">
    {{# for(var i=0;i<d.data.length ;i++){ }}
    <li>
        <ul class="team-list">
            <li>{{d.data[i].new_code}}</li>
            <li>{{d.data[i].fresh.mobile}}</li>
            <li>{{d.data[i].create_time}}</li>
            <li>{{d.data[i].fresh.team_total}}</li>
        </ul>
    </li>
    {{# } }}
</script>
</body>
{include file="public/footer" select="0" /}
<script>
    $(function () {
        getFlow(1, "{:url('user/my_team')}");
    })

</script>